int moniter(char* host)
{// addr = 0x080493F6
    int sockfd;
    int numbytes;
    char[4095] buf;
    char[2] over;
    int i;
    int flag;
    int ret;
    char* start;
    char* end;
    char* tmp;
    char* locate;
    struct hostent* he;
    struct sockaddr_in their_addr;
    fd_set fdsr;
    int maxsock;
    struct timeval tv;
    long unsigned int ul;
    int error;
    int len;
    struct timeval timeout;
    int __d0;
    int __d1;
    int __d0;
    int __d1;
    intOrPtr _v16;
    int _v20;
    intOrPtr _v24;
    int _v28;
    int _v32;
    char* _v36;
    int _v40;
    int _v44;
    int _v48;
    int _v52;
    int _v56;
    int _v60;
    int _v64;
    intOrPtr _v68;
    int _v72;
    char _v4168;
    char _v4170;
    char _v4171;
    intOrPtr _v4184;
    short _v4186;
    char _v4188;
    char _v4316;
    int _v4320;
    char _v4324;
    char _v4328;
    char _v4332;
    char _v4336;
    int _v4340;
    char _v4344;
    int _v4352;
    int _v4364;
    int _v4368;
    int _v4372;
    int _v4376;
    _unknown_ r6;
    _unknown_ _t186;
    char* _t187;
    short _t188;
    int _t194;
    _unknown_ _t199;
    _unknown_ _t204;
    _unknown_ _t206;
    _unknown_ _t208;
    _unknown_ _t210;
    _unknown_ _t212;
    _unknown_ _t214;
    _unknown_ _t216;
    _unknown_ _t218;
    int _t224;
    int _t227;
    _unknown_ _t229;
    _unknown_ _t231;
    _unknown_ _t232;
    _unknown_ _t235;
    int _t238;
    intOrPtr _t241;
    _unknown_ _t243;
    _unknown_ _t247;
    int _t252;
    _unknown_ _t254;
    int _t257;
    int _t260;
    int _t263;
    _unknown_ _t266;
    _unknown_ _t268;
    _unknown_ _t270;
    _unknown_ _t271;
    _unknown_ _t272;
    _unknown_ _t275;
    int _t278;
    int _t281;
    _unknown_ _t282;
    _unknown_ _t283;
    _unknown_ _t284;
    _unknown_ _t285;
    _unknown_ _t286;
    _unknown_ _t287;
    _unknown_ _t290;
    _unknown_ _t294;
    char* _t297;
    char* _t299;

    _v4328 = 1;
    _v64 = 0;
    _v56 = 0;
    _v52 = 0;
    _v48 = 0;
    _v44 = 0;
    _v40 = 0;
    _t187 = host;
    L08075250(_t187);
    _v36 = _t187;
    _v4188 = 2;
     *__esp = 80;
    _t188 = L08075240(__esp);
    _v4186 = _t188;
    _v4184 =  *((intOrPtr*)( *(_v36[0x10])));
    _v4376 = 8;
    _t194 =  &_v4188 + 8;
     *__esp = _t194;
    L0806F910();
    _v4372 = 0;
    L08073680(0, __esp, 2, 1);
    _v72 = _t194;
    __eflags = _v72 - 255;
    if(_v72 != 255) {
        L08071830(__esp, _v72, 21537,  &_v4328);
        _v4332 = -1;
        _v4372 = 16;
        _t199 = L08052AA0(__esi, _v72,  &_v4188);
        __eflags = _t199 - 255;
        if(_t199 != 255) {
L8:
            _v56 = -1;
            goto L9;
        } else {
            goto L3;
        }
        goto L3;
L9:
        L0805FF20("ret is [%d]\n", _v56);
        __eflags = _v56;
        if(_v56 == 0) {
            _v4328 = 0;
            _v4372 =  &_v4328;
            _v4376 = 21537;
             *__esp = _v72;
            L08071830(__esp);
            L0806F850(0, _t296, __esi,  &_v4168, 0, 4096);
            _v4376 = "GET / HTTP/1.1\n";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "User-Agent: huituzi-monitor\n";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "Accept: */*\n";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "GET / HTTP/1.1\n";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "host: ";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "about.huituzi.net";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4376 = "\n\n";
             *__esp =  &_v4168;
            L0806E1B0(__esp);
            _v4324 = 3;
            _v4320 = 0;
            _v4344 = 3;
            _v4340 = 0;
            _v4364 = 8;
            _v4368 =  &_v4344;
            _v4372 = 21;
            L08073640(0, __esp, _v72, 1);
            _v4364 = 8;
            _v4368 =  &_v4344;
            _v4372 = 20;
            L08073640(0, __esp, _v72, 1);
             *__esp =  &_v4168;
            _t224 = L0806E770(__esp, __eflags);
            _v4368 = 0;
            _v4372 = _t224;
            _t227 = L08052BC0(__esi, _v72,  &_v4168);
            __eflags = _t227;
            if(_t227 >= 0) {
                L0806F850(0, _t296, __esi,  &_v4168, 0, 4096);
                _v32 = _v72;
                _t297 =  &_v4316;
                asm("cld ");
                _push(32 << 2);
                _push(0);
                _push(_t297);
                memset();
                __esp =  &(__esp[3]);
                _t298 = _t297 + 32;
                _v20 = 0;
                _v16 = _t297 + 32;
                asm("bts [ebp+edx*4+0xffffef28], eax");
                _v4364 =  &_v4324;
                _v4368 = 0;
                _v4372 = 0;
                _t238 =  &_v4316;
                _v4376 = _t238;
                 *__esp = _v32 + 1;
                L08071940();
                _v56 = _t238;
                __eflags = _v56;
                if(_v56 >= 0) {
                    __eflags = _v56;
                    if(_v56 != 0) {
                        _v4368 = 0;
                        _v4372 = 4096;
                        _t241 = L08052B00(__esi, _v72,  &_v4168);
                        _v68 = _t241;
                        __eflags = _v68 - 255;
                        if(_v68 != 255) {
                            L0806F850(0, _t298, __esi,  &_v4171, 0, 3);
                            _v4171 = 13;
                            _v4170 = 10;
                            _v52 =  &_v4168;
                            _v44 = _v52;
                             *__esp =  &_v4168;
                            _t247 = L0806E770(__esp, __eflags);
                            _v48 = _t247 + _v52;
                            while(1) {
L25:
                                __eflags = _v52 - _v48;
                                if(_v52 >= _v48) {
                                    break;
                                } else {
                                    goto L20;
                                }
                                goto L20;
                            }
L29:
                            L08052A50(_v72);
                            __eflags = _v40;
                            if(_v40 == 0) {
L32:
                                _v4352 = 1;
                                return _v4352;
                            }
                            _t257 = L0806E4D0(_v40, "http://about.wyb.name");
                            __eflags = _t257;
                            if(_t257 != 0) {
                                goto L32;
                            }
                            _v4352 = 0;
                            return _v4352;
                            return _v4352;
                        } else {
                            goto L18;
                        }
                        goto L18;
L20:
                        _t252 = L0806F010(_v52, _v52,  &_v4171);
                        _v52 = _t252;
                        __eflags = _v52;
                        if(_v52 == 0) {
                            goto L29;
                        }
                         *_v52 = 0;
                        _v52 = _v52 + 2;
                        _t260 = L0806E820(_v44, "Location:", 9);
                        __eflags = _t260;
                        if(_t260 != 0) {
L24:
                            _v44 = _v52;
                            goto L25;
                        }
                        _t263 = L0806E360(__esp, _v44, 32);
                        _v44 = _t263;
                        __eflags = _v44;
                        if(_v44 == 0) {
                            goto L28;
                        }
                        _v44 = _v44 + 1;
                        _v40 = _v44;
                        goto L24;
L28:
                        goto L29;
                    } else {
                        goto L16;
                    }
                    goto L16;
L18:
                    L08052A50(_v72);
                    _v4352 = -1;
                    return _v4352;
                } else {
                    goto L14;
                }
                goto L14;
L16:
                _v4352 = 1;
                return _v4352;
            } else {
                goto L12;
            }
            goto L12;
L14:
            _v4352 = -1;
            return _v4352;
        }
        L08052A50(_v72);
        _v4352 = -1;
        return _v4352;
L12:
         *__esp = "send";
        L08060060();
         *__esp = _v72;
        L08052A50();
        _v4352 = -1;
        return _v4352;
    }
     *__esp = "socket";
    L08060060();
    _v4352 = -1;
    return _v4352;
L3:
    _v4324 = 5;
    _v4320 = 0;
    _t299 =  &_v4316;
    asm("cld ");
    _push(32 << 2);
    _push(0);
    _push(_t299);
    memset();
    __esp =  &(__esp[3]);
    _t296 = _t299 + 32;
    _v28 = 0;
    _v24 = _t299 + 32;
    asm("bts [ebp+edx*4+0xffffef28], eax");
    _v4364 =  &_v4324;
    _v4368 = 0;
    _t278 =  &_v4316;
    _v4372 = _t278;
    _v4376 = 0;
     *__esp = _v72 + 1;
    L08071940();
    __eflags = _t278;
    if(_t278 <= 0) {
        _v56 = 1;
        goto L9;
    }
    _v4364 =  &_v4336;
    _v4368 =  &_v4332;
    _v4372 = 4;
    _v4376 = 1;
    _t281 = _v72;
     *__esp = _t281;
    L08073620(0, __esp);
    _v60 = _t281;
    __eflags = _v60;
    if(_v60 != 0) {
        _v56 = -1;
    } else {
        _v56 = 0;
    }
}